<template>
  <div>
    <header>
      <el-button
        type='primary'
        @click="logOut"
      >退出</el-button>
    </header>
  </div>
</template>

<script>
export default {
  methods: {
    logOut () {
      window.sessionStorage.clear()
      this.$router.push('/login')
    }
  }
}
</script>

<style>
</style>
